package net.lijingye.education.request.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * Created by LijingYe on 2016/3/26.
 */
@Constraint(validatedBy = {GenderValidator.class})
@Documented
@Target( { ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface Gender {
    String message() default "'-1', '1', '0'";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
